.language-picker {
	border: 1px solid var( --color-neutral-10 );
	border-width: 1px 1px 2px;
	border-radius: 4px;
	width: 300px;
	display: flex;
	flex: 1 0 auto;
	font-size: 14px;
	height: 64px;
	align-items: stretch;
	cursor: pointer;
	transition: border-color 150ms ease-in-out;
	text-align: left;
	line-height: inherit;

	@include breakpoint( '<660px' ) {
		width: 100%;
	}

	&[disabled] {
		cursor: default;

		&,
		.language-picker__icon {
			border-color: var( --color-neutral-0 );
		}

		&,
		.language-picker__name-change {
			color: var( --color-neutral-0 );
		}
	}

	&:not( [disabled] ) {
		&:hover {
			&,
			.language-picker__icon {
				border-color: var( --color-neutral-20 );
			}
		}

		&:focus {
			&,
			.language-picker__icon {
				border-color: var( --color-primary );
			}

			box-shadow: 0 0 0 2px var( --color-primary-10 );

			&:hover {
				box-shadow: 0 0 0 2px var( --color-primary-20 );
			}
		}
	}

	&.is-loading {
		.language-picker__icon-inner {
			width: 30px;
			height: 30px;
			animation: pulse-light 800ms ease-in-out infinite;
		}

		.language-picker__name-inner {
			width: 100%;
			height: 30px;
			background-color: var( --color-neutral-0 );
		}
	}
}

.language-picker__icon {
	width: 64px;
	margin: 4px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	border-right: 1px solid var( --color-neutral-10 );
	transition: border-color 150ms ease-in-out;
}

.language-picker__icon-inner {
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1;
}

.language-picker__name {
	flex: auto;
	margin: 4px 16px;
	display: flex;
	align-items: center;
}

.language-picker__name-inner {
	font-weight: 600;
	overflow: hidden;
}

.language-picker__name-label {
	white-space: nowrap;
}

.language-picker__name-change {
	text-transform: uppercase;
	color: var( --color-text-subtle );
}
